package cn.samler.shopapi.Mapper;

import cn.samler.shopapi.Entity.User;
import cn.samler.shopapi.Model.Response.User.Info;
import org.apache.ibatis.annotations.*;

public interface UserMapper {

    void insertUser(User user);

    User loginTo(@Param("username") String username, @Param("password") String password);

    User findByUsername(String username);

    User findById(int id);

    void setPassword(@Param("id") int id, @Param("password") String password);

    boolean updateAvatar(@Param("id") int id, @Param("url") String url);

    Info getInfo(int uid);
}
